package com.common.common.util;

import java.util.Collection;

public class FieldFillUtil {
    public static <T> void fillByInsert(T entity) {
        //todo
    }

    public static <T> void fillByInsert(Collection<T> entity) {
        if (entity == null || entity.isEmpty()) return;
        for (T t : entity) {
            fillByInsert(t);
        }
    }
    
    public static <T> void fillByUpdate(T entity) {
        //todo
    }
    
    public static <T> void fillByUpdate(Collection<T> entity) {
        if (entity == null || entity.isEmpty()) return;
        for (T t : entity) {
            fillByUpdate(t);
        }
    }
}
